### Include common Makefile configuration
#
include   $(top_srcdir)/build/Makefile.am.common



### Create one library with all Snoopy outputs collected in it
#
noinst_LTLIBRARIES = libsnoopy_outputs_all.la



### Filter collection is made of the following files
#
# Please maintain alphabetical order, equal to what `ls` would do.
#
libsnoopy_outputs_all_la_SOURCES = \
    noopoutput.c \
    noopoutput.h



# Output: devlog
#
if OUTPUT_ENABLED_devlog
libsnoopy_outputs_all_la_SOURCES += \
    devlogoutput.c \
    devlogoutput.h
endif

# Output: devnull
#
if OUTPUT_ENABLED_devnull
libsnoopy_outputs_all_la_SOURCES += \
    devnulloutput.c \
    devnulloutput.h
endif

# Output: devtty
#
if OUTPUT_ENABLED_devtty
libsnoopy_outputs_all_la_SOURCES += \
    devttyoutput.c \
    devttyoutput.h
endif

# Output: file
#
if OUTPUT_ENABLED_file
libsnoopy_outputs_all_la_SOURCES += \
    fileoutput.c \
    fileoutput.h
endif

# Output: socket
#
# This one is always enabled, unconditionally
#
libsnoopy_outputs_all_la_SOURCES += \
    socketoutput.c \
    socketoutput.h

# Output: stderr
#
if OUTPUT_ENABLED_stderr
libsnoopy_outputs_all_la_SOURCES += \
    stderroutput.c \
    stderroutput.h
endif

# Output: stdout
#
if OUTPUT_ENABLED_stdout
libsnoopy_outputs_all_la_SOURCES += \
    stdoutoutput.c \
    stdoutoutput.h
endif

# Output: syslog
#
if OUTPUT_ENABLED_syslog
libsnoopy_outputs_all_la_SOURCES += \
    syslogoutput.c \
    syslogoutput.h
endif
